package com.ios.palette.dao;

import java.io.Serializable;
import java.util.List;

public interface IBaseDAO<T> {
	public T findById(Class<T> entityClass,Serializable id);

	public List<T> findAll(Class<T> entityClass);

	public Serializable save(T t);

	public void update(T t);

	public void delete(T t);
	
	public void delete(Class<T> entityClass,Long id);
	
	public List<T> findOrderByDesc(Class<T> entityClass,String order);
	
}
